package com.frxuexi.park2301.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.frxuexi.lib_base.mvvm.BaseViewFragment
import com.frxuexi.park2301.R
import com.frxuexi.park2301.databinding.FragmentServiceBinding
import dagger.hilt.android.AndroidEntryPoint


@AndroidEntryPoint
class ServiceFragment : BaseViewFragment<FragmentServiceBinding>() {
    override fun initData() {
    }

    override fun initView() {
        binding.servicePark.setOnClickListener {
            start("/park/ParkActivity")
        }
        binding.serviceRepair.setOnClickListener {
            start("/repair/RepairActivity")
        }
        binding.serviceVisit.setOnClickListener {
            start("/visit/VisitActivity")
        }
    }


    fun start(url:String){
        ARouter.getInstance().build(url).navigation()
    }

}